To discuss something so fully as to resolve a problem or conflict; to hammer out.
They spent an afternoon on it, but thrashed out a solution in the end.